<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="jquery-2.0.0.min.js"></script>
    <style>
         * {
      margin: 0;
      padding: 0;
    }
    /* img{
        width: 240px;
        height: 240px;
    } */
    
    ul li{
        list-style:none;
        display: inline-flex;
        
    }
    
    </style>
</head>
<body>
    <script>
    $(function(){
        $("#cen>ul>li").mouseenter(function(){
            $(this).siblings("li").css("width","100px")
            $(this).css("width","1000px")
        })
        $("#cen").mouseleave(function(){
            $("#cen>ul>li").css("width","240px")
        })
    })
    </script>
    <div id="cen">
        <ul id="center">
            <li><a href=""><img src="./images/1.jpg" alt=""></a></li>
            <li><a href=""><img src="./images/2.jpg" alt=""></a></li>
            <li><a href=""><img src="./images/3.jpg" alt=""></a></li>
            <li><a href=""><img src="./images/1.jpg" alt=""></a></li>
            <li><a href=""><img src="./images/3.jpg" alt=""></a></li>
            <!-- <li><a href=""><img src="./images/1.jpg" alt=""></a></li> -->
        </ul >
    </div>
</body>
</html>